home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.09 Sep 95 / 11.09 Think Top 10 < prev    next >
Encoding:
Text File  |  1995-09-06  |  953 b   |  22 lines  |  [TEXT/ttxt]

  1. Q:    I am precompiling my header files and am getting the following build error:
  2.  
  3.     File "TextUtils.h"; Line 311; While compiling "Mac #includes.c" Error: 'stringtonum' previously declared as something else 
  4.     It was declared as: void C func(char const *, long *)
  5.     It is now declared as: void C func(char *, long *)
  6.  
  7. A:    Go into the header file BDC.h in the 2.0a4 Universal Headers folder that you copied from the Symantec C++ for Power Macintosh CD-ROM and change the following code:
  8.  
  9.     #ifdef CGLUESUPPORTED // defined in 2.0a4 or later
  10.     void stringtonum(const char *theString, long *theNum);
  11.     #else
  12.     void stringtonum(const char *theString, long *theNum ); 
  13.            #endif            
  14.          to:
  15.     #ifdef CGLUESUPPORTED // defined in 2.0a4 or later
  16.     void stringtonum(const char *theString, long *theNum);
  17.     #else
  18.     void stringtonum(char *theString, long *theNum );
  19.     #endif
  20.  
  21.     This is only a problem with the newer version of BDC.h that comes with universal headers 2.0a4
  22.